package cn.glenn._05article.pojo.dto;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Size;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor

public class UserArticleParam {
    @NotBlank(message = "文章标题不能为空")
    private String title;
    @Size(min = 10, max = 500,message = "内容长度为10-500")
    private String content;
}
